import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { LoginComponent } from './login.component';

const routes: Routes = [
    {path: '', redirectTo: 'login'},
    {path: 'login', component: LoginComponent,  data: {showerror: false}},
    {path: 'loginerror', component: LoginComponent, data: {showerror: true}},
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule],
  providers: []
})
export class LoginRoutingModule { }
